#include<stdio.h>
int x, y, z, tmp;
int main()
{
	scanf("%d%d%d", &x, &y, &z);
	if(x < y)
	{
		tmp = x;
		x = y;
		y = tmp;
	}
	if(x < z)
	{
		tmp = x;
		x = z;
		z = tmp;
	}
	if(y < z)
	{
		tmp = y;
		y = z;
		z = tmp;
	}
	printf("%d %d %d", x, y, z);
	return 0;
}
